import React from 'react';
import './index.less'
export default class Message extends React.Component {

    componentDidMount(){

    }
    
    onClick=()=>{
        const {onClick}=this.props;
        onClick && onClick();
    }

	render() {
        const {children,className,title} = this.props;

		return (
            <div className = {"ui-message "+className } onClick={this.onClick}>
                <div>
                    <img />
                    这是图片
                </div>
               
              {children?children:title}
            </div>
		);

	}

}